<html>
<body>
<h2>Hello World!</h2>
user:[${user}]

-------set------------
#set($key="word")
[$key]word
#set($arr=["1","2","3"])
#set($map={"q":1,"w":2,"a":4})
$map

--------if------------
#if($key=="hello")
aaaaa
#elseif($key=="word")
bbbbb
#end

--------foreach-------
#set($arr=["red","yellow","green"])
#foreach($i in $arr)
$i
#end

-------include-------
#include("test.html")

-------parse---------
#parse("second.html")

--------macro--------
#macro(d)
macro test
#end

------macro2---------
#macro(tablerows $color $somelist $title)
<table>
    <tr><td>${title}</td></tr>
    #foreach($i in $somelist)
    <tr><td bgcolor="${color}">${i}</td></tr>
    #end
</table>
#end
#set($somelist=["1","2","3","4","5"])
#set($color="red")
#tablerows($color $somelist "number")

</body>
</html>
